#!/bin/bash

# 安装依赖
echo "Installing dependencies..."
pnpm install

# 构建项目
echo "Building project..."
pnpm build

# 复制配置文件
echo "Copying configuration files..."
cp .env dist/.env

# 启动服务
echo "Starting server..."
cd dist
NODE_ENV=production node main.js 